package com.ssm.util;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext applicationContext=new AnnotationConfigApplicationContext(ApplicationCfg.class);
        Human zhangsan=(Human)applicationContext.getBean("zhangsan");
        zhangsan.introduce();
    }
}
